package com.tjtt.tdm.fileupload.service;

import java.util.List;
import java.util.Map;

import com.tjtt.tdm.base.PageResult;
import com.tjtt.tdm.exception.DaoException;
import com.tjtt.tdm.fileupload.bean.TdmAttachment;

public interface TdmAttachmentService {

	/**
	 * 查询所有附件
	 * @param filterMap
	 * @return 
	 * @throws DaoException 
	 */
	public PageResult queryAttachment(Map filterMap) throws DaoException;
	
	public List<TdmAttachment> getAttachment(String codeid,String column) throws DaoException;
	/**
	 * 保存附件
	 * @param attachment
	 * @return
	 * @throws DaoException 
	 */
	public String saveAttachement(TdmAttachment attachment) throws DaoException;
	
	/**
	 * 获取一条附件信息
	 * @param id
	 * @return
	 * @throws DaoException
	 */
	public TdmAttachment getOneAttachment(String id) throws DaoException;
	/**
	 * 删除附件
	 * @param id
	 * @throws DaoException
	 */
	public void deleteAttachment(TdmAttachment attachment) throws DaoException;
}
